<script setup lang="ts">
import { useRouter } from 'vue-router';

const router = useRouter()

const navigate = (path: string) => {
  router.push(path)
}
</script>

<template>
  <div class="footer">
    <div class="content">
      <div class="left-section">
        <div class="column">
          <p class="footer-link mb-10" @click="navigate('/user/innovation/project')">
            双创广场
          </p>
          <!-- <p class="footer-link mb-10" @click="navigate('/user/moxing')">
            模型广场
          </p> -->
          <p class="footer-link mb-5" @click="navigate('/user/data')">
            数据广场
          </p>
        </div>
        <div class="column">
          <p class="footer-link mb-10" @click="navigate('/user/application/dev-space')">
            应用广场
          </p>
          <p class="footer-link mb-5" @click="navigate('/user/learningNew/course')">
            学习广场
          </p>
        </div>
        <!-- <div class="column">
          <p class="footer-link mb-10">
            创建应用
          </p>
          <p class="footer-link mb-10" @click="navigate('/chat-page/my-chat')">
            开启对话
          </p>
        </div> -->
      </div>
      <div class="divider" />
      <div class="right-section">
        <div class="title mb-0">
          智链iLink
        </div>
        <div class="info">
          <p class="mb-5">
            地址：北京市海淀区西土城路10号
          </p>
          <p class="mb-0">
            邮箱: ehaihong@bupt.edu.cn
          </p>
        </div>
      </div>
    </div>
  </div>
</template>

<style scoped>
.footer {
  width: 103%;
  height: 564px;
  background-color: #1D315C;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: -192px;
  /* -48rem */
}

.content {
  width: 50%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

.left-section {
  display: flex;
  gap: 100px;
}

.column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-family: 'PingFang HK', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 22.4px;
  color: #8a8a8a;
  cursor: pointer;
}

.mb-10 {
  margin-bottom: 40px;
}

.mb-5 {
  margin-bottom: 20px;
}

.divider {
  width: 100px;
  height: 0;
  border: 1px solid #8a8a8a;
  opacity: 1;
  transform: rotate(-90deg);
}

.right-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.title {
  font-family: 'PingFang HK', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 22.4px;
  margin-bottom: 0;
  background: linear-gradient(100.12deg, #4B79DB 0%, #3BBAFC 100%);
  -webkit-background-clip: text;
  color: transparent;
}

.info p {
  font-family: 'PingFang HK', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 28px;
  color: #8a8a8a;
}

.mb-0 {
  margin-bottom: 0;
}
</style>
